﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200117F RID: 4479
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SetNicknameScRsp : IMessage<SetNicknameScRsp>, IMessage, IEquatable<SetNicknameScRsp>, IDeepCloneable<SetNicknameScRsp>, IBufferMessage
	{
		// Token: 0x170038A4 RID: 14500
		// (get) Token: 0x0600C86D RID: 51309 RVA: 0x0021C171 File Offset: 0x0021A371
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SetNicknameScRsp> Parser
		{
			get
			{
				return SetNicknameScRsp._parser;
			}
		}

		// Token: 0x170038A5 RID: 14501
		// (get) Token: 0x0600C86E RID: 51310 RVA: 0x0021C178 File Offset: 0x0021A378
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SetNicknameScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170038A6 RID: 14502
		// (get) Token: 0x0600C86F RID: 51311 RVA: 0x0021C18A File Offset: 0x0021A38A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SetNicknameScRsp.Descriptor;
			}
		}

		// Token: 0x0600C870 RID: 51312 RVA: 0x0021C191 File Offset: 0x0021A391
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetNicknameScRsp()
		{
		}

		// Token: 0x0600C871 RID: 51313 RVA: 0x0021C199 File Offset: 0x0021A399
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetNicknameScRsp(SetNicknameScRsp other) : this()
		{
			this.isModify_ = other.isModify_;
			this.retcode_ = other.retcode_;
			this.jKHOCHIJPDH_ = other.jKHOCHIJPDH_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C872 RID: 51314 RVA: 0x0021C1D6 File Offset: 0x0021A3D6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetNicknameScRsp Clone()
		{
			return new SetNicknameScRsp(this);
		}

		// Token: 0x170038A7 RID: 14503
		// (get) Token: 0x0600C873 RID: 51315 RVA: 0x0021C1DE File Offset: 0x0021A3DE
		// (set) Token: 0x0600C874 RID: 51316 RVA: 0x0021C1E6 File Offset: 0x0021A3E6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsModify
		{
			get
			{
				return this.isModify_;
			}
			set
			{
				this.isModify_ = value;
			}
		}

		// Token: 0x170038A8 RID: 14504
		// (get) Token: 0x0600C875 RID: 51317 RVA: 0x0021C1EF File Offset: 0x0021A3EF
		// (set) Token: 0x0600C876 RID: 51318 RVA: 0x0021C1F7 File Offset: 0x0021A3F7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170038A9 RID: 14505
		// (get) Token: 0x0600C877 RID: 51319 RVA: 0x0021C200 File Offset: 0x0021A400
		// (set) Token: 0x0600C878 RID: 51320 RVA: 0x0021C208 File Offset: 0x0021A408
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public long JKHOCHIJPDH
		{
			get
			{
				return this.jKHOCHIJPDH_;
			}
			set
			{
				this.jKHOCHIJPDH_ = value;
			}
		}

		// Token: 0x0600C879 RID: 51321 RVA: 0x0021C211 File Offset: 0x0021A411
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SetNicknameScRsp);
		}

		// Token: 0x0600C87A RID: 51322 RVA: 0x0021C220 File Offset: 0x0021A420
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SetNicknameScRsp other)
		{
			return other != null && (other == this || (this.IsModify == other.IsModify && this.Retcode == other.Retcode && this.JKHOCHIJPDH == other.JKHOCHIJPDH && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C87B RID: 51323 RVA: 0x0021C27C File Offset: 0x0021A47C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.IsModify)
			{
				num ^= this.IsModify.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.JKHOCHIJPDH != 0L)
			{
				num ^= this.JKHOCHIJPDH.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C87C RID: 51324 RVA: 0x0021C2ED File Offset: 0x0021A4ED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C87D RID: 51325 RVA: 0x0021C2F5 File Offset: 0x0021A4F5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C87E RID: 51326 RVA: 0x0021C300 File Offset: 0x0021A500
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.JKHOCHIJPDH != 0L)
			{
				output.WriteRawTag(8);
				output.WriteInt64(this.JKHOCHIJPDH);
			}
			if (this.IsModify)
			{
				output.WriteRawTag(24);
				output.WriteBool(this.IsModify);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C87F RID: 51327 RVA: 0x0021C374 File Offset: 0x0021A574
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.IsModify)
			{
				num += 2;
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.JKHOCHIJPDH != 0L)
			{
				num += 1 + CodedOutputStream.ComputeInt64Size(this.JKHOCHIJPDH);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C880 RID: 51328 RVA: 0x0021C3D8 File Offset: 0x0021A5D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SetNicknameScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.IsModify)
			{
				this.IsModify = other.IsModify;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.JKHOCHIJPDH != 0L)
			{
				this.JKHOCHIJPDH = other.JKHOCHIJPDH;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C881 RID: 51329 RVA: 0x0021C43C File Offset: 0x0021A63C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C882 RID: 51330 RVA: 0x0021C448 File Offset: 0x0021A648
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 24U)
					{
						if (num != 80U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Retcode = input.ReadUInt32();
						}
					}
					else
					{
						this.IsModify = input.ReadBool();
					}
				}
				else
				{
					this.JKHOCHIJPDH = input.ReadInt64();
				}
			}
		}

		// Token: 0x04005072 RID: 20594
		private static readonly MessageParser<SetNicknameScRsp> _parser = new MessageParser<SetNicknameScRsp>(() => new SetNicknameScRsp());

		// Token: 0x04005073 RID: 20595
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005074 RID: 20596
		public const int IsModifyFieldNumber = 3;

		// Token: 0x04005075 RID: 20597
		private bool isModify_;

		// Token: 0x04005076 RID: 20598
		public const int RetcodeFieldNumber = 10;

		// Token: 0x04005077 RID: 20599
		private uint retcode_;

		// Token: 0x04005078 RID: 20600
		public const int JKHOCHIJPDHFieldNumber = 1;

		// Token: 0x04005079 RID: 20601
		private long jKHOCHIJPDH_;
	}
}
